package com.abvnet.project.water.project.mapper;

import com.abvnet.project.water.project.domain.ProjectFlow;

import java.util.List;

/**
 * 项目流程 数据层
 * 
 * @author duj
 * @date 2019-07-19
 */
public interface ProjectFlowMapper {
	/**
     * 查询项目流程信息
     * 
     * @param projectId 项目流程ID
     * @return 项目流程信息
     */
	ProjectFlow selectProjectFlowById(Long projectId);

	ProjectFlow selectProjectFlowByProjectId(Long projectId);

	ProjectFlow selectProjectFlowPicByProjectId(Long projectId);

	/**
     * 查询项目流程列表
     * 
     * @param projectFlow 项目流程信息
     * @return 项目流程集合
     */
	public List<ProjectFlow> selectProjectFlowList(ProjectFlow projectFlow);
	
	/**
     * 新增项目流程
     * 
     * @param projectFlow 项目流程信息
     * @return 结果
     */
	public int insertProjectFlow(ProjectFlow projectFlow);
	
	/**
     * 修改项目流程
     * 
     * @param projectFlow 项目流程信息
     * @return 结果
     */
	public int updateProjectFlow(ProjectFlow projectFlow);
	
	/**
     * 删除项目流程
     * 
     * @param projectId 项目流程ID
     * @return 结果
     */
	public int deleteProjectFlowById(Long projectId);
	
	/**
     * 批量删除项目流程
     * 
     * @param projectIds 需要删除的数据ID
     * @return 结果
     */
	public int deleteProjectFlowByIds(String[] projectIds);
	
}